package visualcbir.cluster;

import java.awt.Color;
import visualcbir.node.IViewNode;

/**
 *
 * @author sheila
 */
public class VSEdge {
    private IViewNode oNodeFrom;
    private IViewNode oNodeTo;
    private float widthline;
    private Color color;

    public VSEdge(IViewNode poNodeFrom, IViewNode poNodeTo){
        this.oNodeFrom = poNodeFrom;
        this.oNodeTo = poNodeTo;
    }
    public VSEdge(IViewNode poNodeFrom, IViewNode poNodeTo, float pWidthline, Color pColor){
        this.oNodeFrom = poNodeFrom;
        this.oNodeTo = poNodeTo;
        this.widthline = pWidthline;
        this.color = pColor;
    }

    public Color getColor() {
        return color;
    }

    public void setColor(Color color) {
        this.color = color;
    }

    public float getWidthline() {
        return widthline;
    }

    public void setWidthline(float widthline) {
        this.widthline = widthline;
    }

    
    public IViewNode getoNodeFrom() {
        return oNodeFrom;
    }

    public void setoNodeFrom(IViewNode oNodeFrom) {
        this.oNodeFrom = oNodeFrom;
    }

    public IViewNode getoNodeTo() {
        return oNodeTo;
    }

    public void setoNodeTo(IViewNode oNodeTo) {
        this.oNodeTo = oNodeTo;
    }

}
